import request from '@/utils/request'

export function getPaperListBySubject(subjectId) {
  return request({
    url: `/admin/getPaperListBySubject?subjectId=${subjectId}`,
    method: 'get'
  })
}

export function getAllPaperList() {
  return request({
    url: `/admin/getAllPaperList`,
    method: 'get'
  })
}

export function addNewPaper(data) {
  return request({
    url: `/admin/addNewPaper`,
    method: 'post',
    data
  })
}

export function deletePaper(data) {
  return request({
    url: `/admin/deletePaper`,
    method: 'post',
    data
  })
}

export function getPaperDetail(id) {
  return request({
    url: `/admin/getPaperDetail?paperId=${id}`,
    method: 'get'
  })
}
